<template>
  <div class="execution-log">
    <div class="log-header">
      <h3>执行日志</h3>
    </div>
    <div class="log-content">
      <div class="log-entry" v-for="(log, index) in executionLogs" :key="index">
        <div class="log-message">{{ log }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ExecutionLog',
  data() {
    return {
      executionLogs: [
        '蚌埠市看守所投送40名罪犯完毕',
        '合肥市看守所投送15名罪犯完毕',
        '宣城市看守所投送20名罪犯完毕'
      ]
    }
  }
}
</script>

<style scoped>
.execution-log {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.log-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(45deg,
    rgba(0, 120, 160, 0.9) 0%,
    rgba(0, 100, 140, 0.8) 50%,
    rgba(0, 80, 120, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(0, 100, 150, 0.4);
}

.log-content {
  flex: 1;
  overflow-y: auto;
  padding: 5px;
}

.log-entry {
  padding: 5px 15px;
  margin-bottom: 4px;
  background:
    linear-gradient(145deg,
      rgba(0, 80, 120, 0.08) 0%,
      rgba(0, 100, 140, 0.06) 50%,
      rgba(0, 60, 100, 0.04) 100%
    ),
    rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 100, 150, 0.2);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.log-entry:hover {
  background:
    linear-gradient(145deg,
      rgba(0, 80, 120, 0.12) 0%,
      rgba(0, 100, 140, 0.1) 50%,
      rgba(0, 60, 100, 0.06) 100%
    ),
    rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 100, 150, 0.3);
}

.log-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* 自定义滚动条 */
.log-content::-webkit-scrollbar {
  width: 6px;
}

.log-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.log-content::-webkit-scrollbar-thumb {
  background: rgba(0, 100, 150, 0.5);
  border-radius: 3px;
}

.log-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 100, 150, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .execution-log {
    padding: 10px;
  }

  .log-header h3 {
    font-size: 14px;
  }

  .log-entry {
    padding: 10px 12px;
  }

  .log-message {
    font-size: 13px;
  }
}
</style>
